#pragma once
#include <MsHTML.h>
#include <atlbase.h>

#include <memory>

using std::unique_ptr;

class CActivity
{
public:
	CActivity(void);
	~CActivity(void);

	static unique_ptr<CActivity> Current() throw();
	void Run(IUnknown* pUnknown) const throw(...);
	void Run(IHTMLDocument2* pUnknown) const throw(...);

private:
	CComQIPtr<IHTMLDocument2> GetDocInterface(IUnknown* pUnknown) const throw(...);
};

